home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / adikit.arc / ADI.H next >
Text File  |  1986-12-01  |  512b  |  18 lines

  1. /*          ADI.H
  2.  
  3.     Definitions common to all ADI device drivers, and to the coordinating
  4.     generic AutoCAD drivers:  DSGEN, DGGEN, PLGEN, PPGEN
  5. */
  6.  
  7. /*  Register communication structure  */
  8. struct comreg {
  9.         short code, arg1, arg2, arg3;
  10.         short si, di, es, ds, ss, us, is, ps, ms, zs, qs;
  11. };
  12.  
  13.  
  14. /*  Byte code packing/unpacking functions */
  15. #define msb(v)            ((v >> 8) & 0xFF)
  16. #define lsb(v)            (v & 0xFF)
  17. #define packbyte(x, y)    ((x << 8) | y)
  18.